﻿<%@ Page Title="Details" Language="C#" MasterPageFile="~/Posts/Posts.master" AutoEventWireup="true" CodeFile="Details.aspx.cs" Inherits="Posts_Details" %>
<%@ Register Src="Header.ascx" TagPrefix="uc" TagName="Header"  %>
<%@ Register Src="Menu.ascx" TagPrefix="uc" TagName="Menu"  %>
<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header id="ucHeader" runat="server" />
    <asp:Panel ID="Panel1" CssClass="tabPage" runat="server">
        <div class="actionButtons clearfix">
            <div class="actions">
                <asp:LinkButton ID="lnkEdit" Text="Edit" ToolTip="Edit" CssClass="btn32 btnEdit32" runat="server" 
                    onclick="lnkEdit_Click" />
                <asp:LinkButton ID="lnkSave" Text="Save" CssClass="btn32 btnSave32"  runat="server" 
                    onclick="lnkSave_Click" />
                <asp:LinkButton ID="lnkCancel" Text="Cancel" CssClass="btn32 btnCancel32"  runat="server" 
                    onclick="lnkCancel_Click" />    
            </div>
        </div>
        <asp:DetailsView ID="dvDetails" DataKeyNames="Id,ConcurencyId" runat="server" AutoGenerateRows="False" DataSourceID="dsPost" CssClass="moo">
            <Fields>
                <acms:TextBoxField DataField="Name" HeaderText="Name" ReadOnly="true" Required="true" HelpText="This values controls the posts name in the URL e.g. ~/parentpath/<b><emp>Name</emp></b>" />
                <acms:TextBoxField DataField="DisplayName" HeaderText="Display Name" Required="true" />
                <acms:DropDownField HeaderText="Template" ReadOnly="true" DataField="TemplateId" DisplayField="TemplateName" DataSourceId="dsTemplates" DataTextField="Name" DataValueField="Id" Required="True" RequiredValidationGroup="gvDetails" HasEmptyValue="True" runat="server" />
                <acms:TextAreaField HeaderText="Summary" DataField="Summary" runat="server" Rows="10" Cols="50" />
                <acms:TextAreaField HeaderText="Keywords" DataField="Keywords" runat="server" Rows="10" Cols="50" />
                <acms:TextAreaField HeaderText="Notes" DataField="Notes" Rows="10" Cols="50" runat="server" />
                <acms:CheckBoxField HeaderText="Developer Locked" DataField="DeveloperLocked" ReadOnly="true" runat="server" />
            </Fields>
        </asp:DetailsView>
    </asp:Panel>
    <acms:TemplateDataSource ID="dsTemplates" runat="server" OnSelectData="dsTemplates_SelectData"/>
    <acms:PostDataSource ID="dsPost" runat="server" EnablePaging="False" 
        onselectdata="dsPost_SelectData" onupdatingdata="dsPost_UpdatingData"/>
</asp:Content>

